﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FlinkList.aspx.cs" Inherits="Admin_FlinkList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>友情链接添加</title>
    <link href="skin/css/base.css" rel="stylesheet" type="text/css" />
    <link href="skin/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="Header">
        友情链接名称：<asp:TextBox ID="txtFriendLinkName" runat="server" Width="265px"></asp:TextBox>
        &nbsp;<asp:Button ID="btnQuery" runat="server" Text="查询" 
            OnClick="btnQuery_Click" CausesValidation="False" />&nbsp;<asp:Button
            ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" 
            CausesValidation="False" />
    </div>
    <div>
        <table cellpadding="1" cellspacing="1">
            <tr class="trHeader">
                <td style="width: 5%">
                    Id
                </td>
                <td style="width: 35%">
                    友情链接名称
                </td>
                <td style="width: 45%">
                    友情链接Url
                </td>
                <td style="width: 15%">
                    操作
                </td>
            </tr>
            <asp:Repeater runat="server" ID="rptList" OnItemCommand="rptList_ItemCommand">
                <ItemTemplate>
                    <tr>
                        <td>
                            <%#Eval("Id")  %>
                        </td>
                        <td>
                            <%#Eval("FriendLink")%>
                        </td>
                        <td>
                            <%#Eval("FriendLinkUrl")%>
                        </td>
                        <td>
                            <asp:Button runat="server" CausesValidation="false" ID="btnDel" Text="删除" CommandArgument='<%#Eval("Id")%>'
                                CommandName="Del" />
                            <asp:Button runat="server" CausesValidation="false" ID="btnUpdate" Text="修改" CommandArgument='<%#Eval("Id")%>'
                                CommandName="Update" />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
        NextPageText="下一页" PrevPageText="上一页">
    </webdiyer:AspNetPager>
    <br />
    <table cellpadding="1" cellspacing="1" width="50%">
        <tr>
            <td>
                友情链接名称：
            </td>
            <td>
                <asp:TextBox ID="txtFriendLink" runat="server" Width="389px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFriendLink"
                    Display="Dynamic" ErrorMessage="不允许为空" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                友情链接Url：
            </td>
            <td>
                <asp:TextBox ID="txtFriendLinkUrl" runat="server" Width="389px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFriendLinkUrl"
                    Display="Dynamic" ErrorMessage="不允许为空" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                排序值：
            </td>
            <td>
                <asp:TextBox ID="txtOrderId" runat="server" Width="389px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtOrderId"
                    Display="Dynamic" ErrorMessage="不允许为空" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                友情链接图片：
            </td>
            <td>
                <asp:FileUpload ID="fup" runat="server" />
                图片尺寸：187px*64px<asp:Label ID="lblImgUrl" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:HiddenField ID="Hid" runat="server" Value="" />
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
